#!/usr/bin/python
# -*- coding: utf-8 -*-

list = [1,2,3,5,7,100,76]
# for index in range(len(list)):
#     print(list[index])

# for elem in list:
#     print(elem)

# for index,elem in enumerate(list):
#     print(index,elem)

# # 尾部添加
# list.append(200)
# # 插入
# list.insert(1,400)
# list1 = ['fff']
# # 合并列表
# list.extend(list1)
# print(list)

# if 3 in list:
#     list.remove(3)
# print(list)
# if 123 in list:
#     list.remove(123)
# print(list)

list1 = ['orange','appl','appla','zoo','international','blueberry']
# # 升序
# list2 = sorted(list1)
# # 降序
# list3 = sorted(list1, reverse=True)
# # 通过key关键字根据长度排序
# list4 = sorted(list1,key=len)
# list4 = sorted(list1,key=len, reverse=True)
# print(list2)
# print(list3)
# print(list4)

# f = [x for x in range(1,10)]
# print(f)
# f = [x + y for x in 'ABCDE' for y in '1234567']
# print(f)


s1 = set([2,3,4])
s2 = set([2,3,4])

print(s1 <= s2)
print(s1 >= s2)